package com.cloorc.example.cloud.consumer;

import com.cloorc.example.fallback.api.ProviderV1ApiFallback;
import com.cloorc.example.clouds.api.WhereWho;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

// Spring spEL @Value
@FeignClient(value = "${service.provider.v1:provider-YApi}", url = "${f.remote.url:}", path = "${f.remote.path:}")
public interface FeignRemote {
    @RequestMapping(value = "/hello", method = RequestMethod.POST)
    Object hello(@RequestBody final WhereWho whereWho); // {"msg":"YApi"}
}
